package com.yh.csx.event.common.id;

import java.io.Serializable;

public interface IdGenerator<T extends Serializable> {

    IdGenerator<String> ID_GENERATOR = new UniqueIdGenerator();

    T nextId();


    static String uuid() {
        return ID_GENERATOR.nextId();
    }
}
